package com.sixth.mapper;

import com.sixth.bean.MarketGoods;
import com.sixth.bean.MarketGoodsExample;

import com.sixth.bean.vo.GoodsStatisticsVO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketGoodsMapper {
    long countByExample(MarketGoodsExample example);

    int deleteByExample(MarketGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketGoods record);

    int insertSelective(MarketGoods record);

    List<MarketGoods> selectByExampleWithBLOBs(MarketGoodsExample example);

    List<MarketGoods> selectByExample(MarketGoodsExample example);

    MarketGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByExample(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByPrimaryKeySelective(MarketGoods record);

    int updateByPrimaryKeyWithBLOBs(MarketGoods record);

    int updateByPrimaryKey(MarketGoods record);

    int selectGoodsCount();


    List<GoodsStatisticsVO> countGoodsByDay();


    // qys
    List<MarketGoods> selectGoodsByInIds(@Param("goodsIds") Integer[] goodsIds);




    List<MarketGoods> selectGoodsByLevel1CategoryId(Integer categoryId);

    List<MarketGoods> selectByExampleWithBLOBsWithLikeKeywords(MarketGoodsExample marketGoodsExample, String keywords);

}

